﻿<%@ Page Title="Admin-JobSeeker" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="LoginAdmin.aspx.cs" Inherits="iResume.LoginAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style2
        {
            text-align: left;
            width: 432px;
        }
        .style3
        {
            text-align: right;
        }
        .style4
        {
            text-align: left;
            width: 15px;
        }
        .style5
        {
            font-family: "Century Gothic";
        }
        .style6
        {
            font-family: "Century Gothic";
        }
        .style7
        {
            text-align: left;
            width: 6px;
        }
        .style13
        {
            font-size: medium;
        }
        .style15
        {
            width: 107px;
            text-align: right;
        }
        .style17
        {
            text-align: left;
        }
        .style19
        {
            font-family: "Times New Roman", Times, serif;
            font-size: x-large;
            color: #0033CC;
        }
        .style20
        {
            text-align: center;
        }
        .style21
        {
            margin-left: 0px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%;">
        <tr>
            <td class="style15" rowspan="6">
                <asp:Image ID="Image1" runat="server" Height="110px" Width="100px" 
                    style="text-align: center; margin-top: 0px" 
                    ImageUrl="Picture//cmlogo.PNG"  
                    DataValue='<%# ((System.Data.Linq.Binary) Eval("imageFull")).ToArray() %>' />
            </td>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                <asp:Label ID="name" runat="server" 
                    style="font-size: x-large; font-weight: 700"></asp:Label>
&nbsp;<span class="style13">(Administrator)</span></td>
            <td class="style4" rowspan="6">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                <span class="style6">Lives in</span>
                <asp:Label ID="nation" runat="server" 
                    style="color: #3399FF; font-family: 'Century Gothic'"></asp:Label>
                , <span class="style6">Born on</span>
                <asp:Label ID="dob" runat="server" style="color: #3399FF"></asp:Label>
                ,<span class="style5"> </span><span class="style6">is a</span><span 
                    class="style5"> </span>
                <asp:Label ID="gender" runat="server" style="color: #3399FF"></asp:Label>
            </td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                <asp:Label ID="Label4" runat="server" Text="Address : " CssClass="style5"></asp:Label>
                <asp:Label ID="Address" runat="server" 
                    style="font-family: 'Century Gothic'; color: #3399FF;"></asp:Label>
                (<asp:Label ID="post" runat="server" 
                    style="font-family: 'Century Gothic'; color: #3399FF;"></asp:Label>
                )</td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                <asp:Label ID="con" runat="server" Text="Contact :"></asp:Label>
                &nbsp;<asp:Label ID="cont" runat="server" 
                    style="font-family: 'Century Gothic'; color: #3399FF;"></asp:Label>
                &nbsp;&nbsp;<asp:HyperLink ID="editinfo" runat="server" NavigateUrl="~/updateAdmin.aspx">Edit Info</asp:HyperLink>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">
&nbsp;<strong><asp:HyperLink ID="js" runat="server" CssClass="style18" 
                    NavigateUrl="~/LoginAdmin.aspx" 
                    style="text-decoration: none; font-size: medium; font-family: 'Century Gothic'">Job Seekers</asp:HyperLink>
&nbsp;</strong>| <strong>
                <asp:HyperLink ID="r" runat="server" CssClass="style18" 
                    NavigateUrl="~/Recruiteradmin.aspx" 
                    style="font-size: medium; text-decoration: none; font-family: 'Century Gothic'">Recruiter</asp:HyperLink>
                &nbsp;</strong>|<strong>
                <asp:HyperLink ID="r0" runat="server" CssClass="style18" 
                    NavigateUrl="~/RecruiterJobpost.aspx" 
                    
                    style="font-size: medium; text-decoration: none; font-family: 'Century Gothic'">Job Post</asp:HyperLink>
                </strong>
            </td>
        </tr>
        <tr>
            <td class="menu" colspan="5">
                <hr />
            </td>
        </tr>
        <tr>
            <td class="style17" colspan="5">
                <strong>
                <asp:Label ID="Label5" runat="server" CssClass="style19" Text="Job Seeker"></asp:Label>
                </strong>
            </td>
        </tr>
        <tr>
            <td class="menu" colspan="5" style="text-align: left">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style20" colspan="5">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
                    CellPadding="2" DataKeyNames="emailAdd" DataSourceID="SqlDataSource1" 
                    ForeColor="Black" GridLines="None" 
                    style="text-align: center; " 
                    onrowcommand="GridView1_RowCommand" AllowPaging="True" CssClass="style21">
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
                            ShowSelectButton="True" />
                        <asp:BoundField DataField="fullName" HeaderText="Full Name" 
                            SortExpression="fullName" />
                        <asp:BoundField DataField="emailAdd" HeaderText="Email Address" 
                            SortExpression="emailAdd" ReadOnly="True" />
                        <asp:BoundField DataField="category" HeaderText="Job Category" 
                            SortExpression="category" />
                        <asp:BoundField DataField="location" HeaderText="Location" 
                            SortExpression="location" />
                        <asp:BoundField DataField="contactemail" HeaderText="Contact Email" 
                            SortExpression="contactemail" />
                        <asp:BoundField DataField="phone" HeaderText="Phone" SortExpression="phone" />
                    </Columns>
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                        HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <SortedAscendingCellStyle BackColor="#FAFAE7" />
                    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                    <SortedDescendingCellStyle BackColor="#E1DB9C" />
                    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConflictDetection="CompareAllValues" 
                    ConnectionString="<%$ ConnectionStrings:iResumeConnectionString %>" 
                    DeleteCommand="DELETE FROM [JobSeeker] WHERE [emailAdd] = @original_emailAdd AND [fullName] = @original_fullName AND (([category] = @original_category) OR ([category] IS NULL AND @original_category IS NULL)) AND (([location] = @original_location) OR ([location] IS NULL AND @original_location IS NULL)) AND (([contactemail] = @original_contactemail) OR ([contactemail] IS NULL AND @original_contactemail IS NULL)) AND (([phone] = @original_phone) OR ([phone] IS NULL AND @original_phone IS NULL))" 
                    InsertCommand="INSERT INTO [JobSeeker] ([fullName], [emailAdd], [category], [location], [contactemail], [phone]) VALUES (@fullName, @emailAdd, @category, @location, @contactemail, @phone)" 
                    OldValuesParameterFormatString="original_{0}" 
                    SelectCommand="SELECT [fullName], [emailAdd], [category], [location], [contactemail], [phone] FROM [JobSeeker]" 
                    
                    UpdateCommand="UPDATE [JobSeeker] SET [fullName] = @fullName, [category] = @category, [location] = @location, [contactemail] = @contactemail, [phone] = @phone WHERE [emailAdd] = @original_emailAdd AND [fullName] = @original_fullName AND (([category] = @original_category) OR ([category] IS NULL AND @original_category IS NULL)) AND (([location] = @original_location) OR ([location] IS NULL AND @original_location IS NULL)) AND (([contactemail] = @original_contactemail) OR ([contactemail] IS NULL AND @original_contactemail IS NULL)) AND (([phone] = @original_phone) OR ([phone] IS NULL AND @original_phone IS NULL))">
                    <DeleteParameters>
                        <asp:Parameter Name="original_emailAdd" Type="String" />
                        <asp:Parameter Name="original_fullName" Type="String" />
                        <asp:Parameter Name="original_category" Type="String" />
                        <asp:Parameter Name="original_location" Type="String" />
                        <asp:Parameter Name="original_contactemail" Type="String" />
                        <asp:Parameter Name="original_phone" Type="String" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="fullName" Type="String" />
                        <asp:Parameter Name="emailAdd" Type="String" />
                        <asp:Parameter Name="category" Type="String" />
                        <asp:Parameter Name="location" Type="String" />
                        <asp:Parameter Name="contactemail" Type="String" />
                        <asp:Parameter Name="phone" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="fullName" Type="String" />
                        <asp:Parameter Name="category" Type="String" />
                        <asp:Parameter Name="location" Type="String" />
                        <asp:Parameter Name="contactemail" Type="String" />
                        <asp:Parameter Name="phone" Type="String" />
                        <asp:Parameter Name="original_emailAdd" Type="String" />
                        <asp:Parameter Name="original_fullName" Type="String" />
                        <asp:Parameter Name="original_category" Type="String" />
                        <asp:Parameter Name="original_location" Type="String" />
                        <asp:Parameter Name="original_contactemail" Type="String" />
                        <asp:Parameter Name="original_phone" Type="String" />
                    </UpdateParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style15">
                &nbsp;</td>
            <td class="style7">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style4">
                &nbsp;</td>
            <td class="style3">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
